#include("/template/common/layout/_page_layout.html")
#@layout()

#define css()
<style>

</style>
#end

#define js()
<script type="text/javascript">
    layui.use(['form', 'layer', 'upload', 'element'], function () {
        //操作对象
        var id = "#(id)";
        var projectId = "#(projectId)";
        var orgType = "#(orgType)";

        $('#submit').click(function () {
            var num = $('#num').val();
            console.log(num);
            if (num >= 1 && num <= 3) {
                $.getJSON('#(ctxPath)/app/project/inviteReview', {
                    id: id,
                    projectId: projectId,
                    orgType: orgType,
                    num: num
                }, function (res) {
                    //????刷新有没有问题
                    pop_close();
                });
            } else {
                layer.msg("所需人数应为1-3人！");
            }
        });
    });

</script>
#end

#define content()
<div class="x-body">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>输入您需要对方派出的人数</legend>
    </fieldset>
    <form id="person" class="layui-form x-center">
        <div class="layui-form-pane">
            <div class="layui-inline">
                <label class="layui-form-label"><em class="require-mark">*</em>人数</label>
                <div class="layui-input-block">
                    <input id="num" lay-verify="required" autocomplete="off" placeholder="请输入所需人数" class="layui-input"
                           type="number">
                </div>
            </div>
        </div>
        <br/>
        <div class="layui-input-block layui-inline x-center">
            <button type="button" class="layui-btn" id="submit">
                确定
            </button>
        </div>
    </form>
</div>
#end